package com.wind.cloud.gateway.client;

import com.wind.cloud.common.vo.ZuulRoute;
import com.wind.cloud.gateway.client.fallback.ZuulRouteServiceFallbackImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(name = "wind-common-service", fallback = ZuulRouteServiceFallbackImpl.class)
public interface ZuulRouteService {

    @GetMapping("/route/listAll")
    List<ZuulRoute> listAll();
}
